package com.demo.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.demo.mapper.T2Mapper;
import com.demo.model.T2;
import com.demo.service.T2Service;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: luobiao
 * @Date: 2020/11/30 22:28
 * @Description:
 */
@Service
@DS("d2")
public class T2ServiceImpl implements T2Service {
    @Resource
    T2Mapper t2Mapper;

    @Override
    public List<T2> list() {
        QueryWrapper queryWrapper = new QueryWrapper();
        List<T2> list=t2Mapper.selectList(queryWrapper);
        return list;
    }
}
